#include "UGDefaultEvent.h"

namespace ugame {
    UGDefaultEvent::UGDefaultEvent() {
        this->arg = NULL;
    }
    
    UGDefaultEvent::~UGDefaultEvent() {
    }
    //khoi tao 1 event
    UGDefaultEvent* UGDefaultEvent::create(int eventId, int eventType, Ref* sender, float delayTime, void* eventArg) {
        UGDefaultEvent* e = new UGDefaultEvent();
        e->autorelease();
        
        e->id = eventId;
        e->type = eventType;
        e->sender = sender;
        e->delayTime = delayTime;
        e->arg = eventArg;
        
        return e;
    }
}